package com.mate.cloud.chain.handler;

import com.mate.cloud.chain.domain.User;


/**
 * 创建抽象处理者
 * @author:         MI
 * @email:          448341911@qq.com
 * @createTime:     2024/6/1 15:29
 * @updateUser:     MI
 * @updateTime:     2024/6/1 15:29
 * @updateRemark:   修改内容
 * @version:        v1.0
 */
public abstract class DiscountHandler {

    protected DiscountHandler nextHandler;

    public void setNextHandler(DiscountHandler nextHandler) {
        this.nextHandler = nextHandler;
    }

    public abstract double applyDiscount(double amount, User user);



}
